package com.zd.springcloud.config;


import com.zd.springcloud.domain.Good;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-gaohq-good",path="/good")
public interface GoodClient {


    @PutMapping("/getGoodInfoById/{goodId}")
    Good getGoodInfoById(@PathVariable("goodId") Long goodId);




    @PutMapping("/reduceStock")
    String reduceStock(@RequestParam("num") int num,@RequestParam("goodId") Long goodId);


}
